<!DOCTYPE html>
<html>
<head>
	<title></title>
	<script type="text/javascript">
		var w1=prompt('请输入矩形的长');
		var h1=prompt('请输入矩形的宽');
		var c1=(Number(w1)+Number(h1))*2;
		var s1=w1*h1;
		console.log(c1);
		console.log(s1);
	</script>
</head>
<body>

</body>
</html>